<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@include file="/common/common.jsp"%>
<%@ page import="com.chanyachting.emall.util.*" %>
<%@ page import="java.util.*" %>

<%@ page import="com.chanyachting.emall.domain.*" %>
<%@ page import="com.chanyachting.emall.util.RequestUtil" %>
<%@ page import="com.chanyachting.emall.service.*" %>
<%@ page import="com.chanyachting.emall.serviceImpl.*" %>


<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="keywords" content="" /> 
<meta name="description" content="" />
<link href="css/import.css" type="text/css" rel="stylesheet" />
<title></title>
</head>

<body>
<div class="tab_box">
	<div class="tab_menu">
    	<a href="ri_create.jsp">发布人才招聘</a>
        <a href="ri_list.jsp" class="current">管理人才招聘</a>
    </div>
    <div class="tab_submenu">
      <table width="100%" border="0" cellspacing="0" cellpadding="0">
        <tr>
          <td width="50%"><div class="mu_title"><a href="ri_list.jsp">人才招聘中</a>｜
          <a href="ri_list_nopublish.jsp">待上架</a></div></td>
          <td align="right">&nbsp;</td>
        </tr>
      </table>
    </div>
</div>
<table width="90%" border="0" align="center" cellpadding="0" cellspacing="0" class="yes_border">
  <tr>
    <th height="36" colspan="6" align="center"><table width="100%" border="0" cellspacing="0" cellpadding="0" class="no_border">
      <tr>
        <td width="15%" height="36" align="center"><label></label>
              <input type="submit" name="button" id="button" value=" 上 架 " />
              <input type="submit" name="button" id="button2" value=" 删 除 " /></td>
        <td align="center">&nbsp;</td>
        <td width="15%" align="center">&nbsp;</td>
      </tr>
    </table></th>
  </tr>
  <tr>
    <td colspan="6" align="center" bgcolor="#E7E7E7"><table width="100%" border="0" cellspacing="0" cellpadding="0" class="no_border">
      <tr>
        <td width="15%" align="center"><label>
          <input type="checkbox" name="checkbox" id="checkbox" />
          </label>
          全选本页招聘信息</td>
        <td align="center">&nbsp;</td>
        <td width="15%" align="center">本页显示 10条招聘信息</td>
      </tr>
    </table></td>
  </tr>
  <tr>
    <th width="15%" align="center">编号</th>
    <th align="center">职位</th>
    <th width="10%" align="center"><p>展示剩余天数</p></th>
    <th width="15%" align="center">上一次刷新时间</th>
    <th width="15%" align="center">发布日期</th>
    <th width="15%" align="center">操作</th>
  </tr>
  
  <%
  	//获得指定公司的所有已上架招聘信息列表 
  	List riList=new ArrayList();
  
  	RequestUtil ru=new RequestUtil(request);
	
	Company company=(Company)ru.getSessionObject(CompanyService.COMPANY_IN_SESSION,new Company());
	
	RecruitmentinformationService ris=new RecruitmentinformationServiceImpl();
	
	riList=ris.getAllPublishRecruitmentinformationByCompany(company);
  
  %>
  
  <%
  	if(riList!=null && riList.size()>0){
  		
  		Recruitmentinformation ri=null;
  		
  		for(int i=0;i<riList.size();i++){
  			
  			ri=(Recruitmentinformation)riList.get(i);
  			
  			//获得岗位名称
  			Iterator jobit=ri.getJoblistSet().iterator();
  			
  			String jobName="";
  			
  			while(jobit.hasNext()){
  				
  				Joblist job=(Joblist)jobit.next();
  				
  				jobName+=job.getJobname()+"；";
  			}
  %>
  <tr>
    <td align="center"><input type="checkbox" name="checkbox" id="checkbox2" /><%= ri.getId() %></td>
    <td><%=jobName %></td>
    <td align="center">30</td>
    <td align="center"><%= ri.getRefreshDate() %></td>
    <td align="center"><%= ri.getPublishDate() %></td>
    <td align="center">
	    <a href="#">预览</a>　
	    <a href="<%=root %>/memberBackend/riRefresh.do?id=<%=ri.getId() %>">刷新</a>　
	    <a href="<%=root %>/memberBackend/riUnder.do?id=<%=ri.getId() %>">下架</a>
    </td>
  </tr>
  
  <%
  			
  		}
  		
  	}
  
  %>
  
  
  <tr>
    <td colspan="6" bgcolor="#E7E7E7"><table width="100%" border="0" cellspacing="0" cellpadding="0" class="no_border">
      <tr>
        <td width="15%" align="center"><label>
          <input type="checkbox" name="checkbox" id="checkbox" />
          </label>
          全选本页招聘信息</td>
        <td align="center">&nbsp;</td>
        <td width="15%" align="center">本页显示 10条招聘信息</td>
      </tr>
    </table></td>
  </tr>
  <tr>
    <td colspan="6"><table width="100%" border="0" cellspacing="0" cellpadding="0" class="no_border">
      <tr>
        <td width="15%" height="36" align="center"><label></label>
              <input type="submit" name="button" id="button7" value=" 上 架 " />
              <input type="submit" name="button" id="button8" value=" 删 除 " /></td>
        <td align="center">&nbsp;</td>
        <td width="15%" align="center">&nbsp;</td>
      </tr>
    </table></td>
  </tr>
</table>
<p>&nbsp;</p>
</body>
</html>

